package com.sunda.spmswms.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 车间表
 * </p>
 *
 * @author Wayne
 * @since 2020-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("WORKSHOP")
@ApiModel(value="Workshop对象", description="车间信息表")
public class Workshop implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "工厂代码")
    @TableField("WERKS")
    private String werks;

    @ApiModelProperty(value = "车间代码")
    @TableField("WORKSHOP_CODE")
    private String workshopCode;

    @ApiModelProperty(value = "车间中文名称")
    @TableField("WORKSHOP_NAME_ZH")
    private String workshopNameZh;

    @ApiModelProperty(value = "车间英文名称")
    @TableField("WORKSHOP_NAME_EN")
    private String workshopNameEn;

    @ApiModelProperty(value = "车间描述")
    @TableField("WORKSHOP_DESC")
    private String workshopDesc;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getWerks() {
        return werks;
    }

    public void setWerks(String werks) {
        this.werks = werks;
    }

    public String getWorkshopCode() {
        return workshopCode;
    }

    public void setWorkshopCode(String workshopCode) {
        this.workshopCode = workshopCode;
    }


    public String getWorkshopNameZh() {
        return workshopNameZh;
    }

    public void setWorkshopNameZh(String workshopNameZh) {
        this.workshopNameZh = workshopNameZh;
    }

    public String getWorkshopNameEn() {
        return workshopNameEn;
    }

    public void setWorkshopNameEn(String workshopNameEn) {
        this.workshopNameEn = workshopNameEn;
    }

    @Override
    public String toString() {
        return "Workshop{" +
                "werks='" + werks + '\'' +
                ", workshopCode='" + workshopCode + '\'' +
                ", workshopNameZh='" + workshopNameZh + '\'' +
                ", workshopNameEn='" + workshopNameEn + '\'' +
                '}';
    }
}
